package com.lagou.edu.connector;


import java.io.IOException;
import java.net.Socket;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * 连接器接口
 *
 * @author liangzj
 * @date 2021/4/6 23:44
 */
public interface Endpoint {

    void setProtocol(String protocol);

    String getProtocol();

    void setPort(int port);

    void create() throws IOException;

    Socket getAcceptor() throws IOException;

    ThreadPoolExecutor getExecutor();

}
